﻿<phone:PhoneApplicationPage 
    x:Class="FGCPDQ.DetailList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:FGCPDQ" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded"
    local:TiltEffect.IsTiltEnabled="True">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--枢轴控件-->
        <controls:Pivot x:Name="pivot1" Title="法国菜谱大全">

            <controls:PivotItem Header="咸鲜味">
                <Grid x:Name="grid1">
                    <ListBox x:Name="list1" FontSize="{StaticResource PhoneFontSizeLarge}" ItemsSource="{Binding}" Tap="list1_Tap">
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                            </Style>
                        </ListBox.ItemContainerStyle>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock TextWrapping="Wrap" Height="60" Margin="12,0,12,0" Text="{Binding title}" Style="{StaticResource PhoneTextTitle3Style}" />
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="甜味">
                <Grid x:Name="grid2">
                    <ListBox x:Name="list2" FontSize="{StaticResource PhoneFontSizeLarge}" ItemsSource="{Binding}" Tap="list1_Tap">
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                            </Style>
                        </ListBox.ItemContainerStyle>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock TextWrapping="Wrap" Height="60" Margin="12,0,12,0" Text="{Binding title}" Style="{StaticResource PhoneTextTitle3Style}" />
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="家常味">
                <Grid x:Name="grid3">
                    <ListBox x:Name="list3" FontSize="{StaticResource PhoneFontSizeLarge}" ItemsSource="{Binding}" Tap="list1_Tap">
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                            </Style>
                        </ListBox.ItemContainerStyle>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock TextWrapping="Wrap" Height="60" Margin="12,0,12,0" Text="{Binding title}" Style="{StaticResource PhoneTextTitle3Style}" />
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </controls:PivotItem>

            <controls:PivotItem Header="奶香味">
                <Grid x:Name="grid4">
                    <ListBox x:Name="list4" FontSize="{StaticResource PhoneFontSizeLarge}" ItemsSource="{Binding}" Tap="list1_Tap">
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                            </Style>
                        </ListBox.ItemContainerStyle>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <TextBlock TextWrapping="Wrap" Height="60" Margin="12,0,12,0" Text="{Binding title}" Style="{StaticResource PhoneTextTitle3Style}" />
                                </StackPanel>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </controls:PivotItem>

            <!--<controls:PivotItem Header="关于我们">
                <Grid x:Name="grid5">
                    <TextBlock TextWrapping="Wrap" 
                               Text="       法国菜谱大全是提供各种法国菜的做法,让您轻松学会法国菜的餐谱软件。
        法式菜的烹饪手法很简单，最为讲究的是以发挥材料的原味为上。，法国农业和食品工业发达,物产较为丰富。
        法国菜的特点是选料广泛，用料新鲜，滋味鲜美，讲究色，香，味，形的配合，花式品种繁多，重用牛肉蔬菜禽类海鲜和水果，特别是蜗牛，黑菌，蘑菇，芦笋，洋百合和龙虾，法国菜肴烧得比较生，调味喜用酒，菜和酒的搭配有严格规定，如清汤用葡萄酒，火鸡用香槟。
        如果您对法国菜谱大全有任何的意见和建议,欢迎和我们联系,有了您的支持,法国菜谱大全才能给您的生活带来越来越多的便利和帮助.

        Email:omicle@sina.com" 
                               Style="{StaticResource PhoneTextNormalStyle}"></TextBlock>
                </Grid>
            </controls:PivotItem>-->


        </controls:Pivot>
    </Grid>

    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="menuItem1" Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem x:Name="menuItem2" Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>